home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_1
/
pubdom.tar
/
pubdom
/
trent
/
angd
next >
Wrap
Text File
|
1990-06-02
|
688b
|
26 lines
%%HP: T(3)A(D)F(.); @ ANGD Converts HMS angle to formatted string
\<<
\<< +
DUP SIZE
3
IF <
THEN "0" SWAP +
END +
\>> \-> zro \<<
HMS\-> 360 MOD \->HMS
4 RND HMS\-> \->HMS STD @ Make sure rounding is accurate
DUP DUP IP \->STR "\^o" @ Get degrees
+ SWAP FP 100 * IP
\->STR "'" @ Get minutes
zro EVAL
SWAP 100 *
FP 100 * IP \->STR 34 @ Get seconds
CHR zro EVAL
\>> @ Leaves String with degree, minutes, and second
@ marks on the stack.
@ developed by Kenneth Trent for SMI
@ (615) 246-3790
\>>